// 组件引入
import UserSystem from '../../components/userSystem/UserSystem'
import Chart from '../../components/chart/Chart'
import CountContainer from '../../container/Count/Count'
import Person from '../../container/Person/Person'
import ProList from '../../components/product/List'
import ProCategory from '../../components/product/Category'
import test from '../../components/product/test'
import Role from '../../components/Role/Role'
import Shop from '../../components/Shop/Shop'
import Sale from '../../components/datav/Sale'
import Flowers from '../../components/datav/Flowers'
// 图标引入
import {
  MenuUnfoldOutlined,
  MenuFoldOutlined,
  UserOutlined,
  PieChartOutlined,
  VideoCameraOutlined,
  WindowsOutlined,
  AppleOutlined,
  UploadOutlined,
} from '@ant-design/icons'
import React from 'react'
import ShopCar from '../../container/ShopCar/ShopCar'

// 列表配置
export default [
  {
    name: '首页',
    icon: <PieChartOutlined />,
    path: '/home',
    // component: React.lazy(() => import("../../components/chart/Chart"))
    component: Chart,
  },
  {
    name: '用户管理',
    icon: <UserOutlined />,
    path: '/home/user',
    // 懒加载
    // component: React.lazy(() => import("../components/ComponentSentProps")),
    component: UserSystem,
  },
  {
    name: '权限管理',
    icon: <UserOutlined />,
    path: '/home/role',
    // 懒加载
    // component: React.lazy(() => import("../components/ComponentSentProps")),
    component: Role,
  },
  {
    name: '店铺管理',
    icon: <UserOutlined />,
    path: '/home/shop',
    // 懒加载
    // component: React.lazy(() => import("../components/ComponentSentProps")),
    component: Shop,
  },
  {
    name: '产品管理',
    icon: <WindowsOutlined />,
    path: '/home/product',
    children: [
      {
        name: '产品分类',
        icon: <UploadOutlined />,
        path: '/home/product/category',
        component: ProCategory,
      },
      {
        name: '产品列表',
        icon: <UploadOutlined />,
        path: '/home/product/list',
        component: ProList,
      },
      {
        name: '测试table',
        icon: <UploadOutlined />,
        path: '/home/product/test',
        component: test,
      },
    ],
  },
  {
    name: '数据统计',
    path: '/home/datav',
    icon: <VideoCameraOutlined />,
    children: [
      {
        name: '流水信息',
        path: '/home/datav/flowers',
        icon: <VideoCameraOutlined />,
        component: Flowers,
      },
      {
        name: '销售统计',
        path: '/home/datav/sale',
        icon: <VideoCameraOutlined />,
        component: Sale,
      },
    ],
  },
  {
    name: 'countContainer',
    icon: <AppleOutlined />,
    path: '/home/countContainer',
    component: CountContainer,
  },
  {
    name: 'Person',
    icon: <AppleOutlined />,
    path: '/home/person',
    component: Person,
  },
  {
    name: 'shopcar',
    icon: <AppleOutlined />,
    path: '/home/shopcar',
    component: ShopCar,
  },
  // {
  //   name: 'todoListCLassTest',
  //   icon: <VideoCameraOutlined />,
  //   path: '/home/todoListCLassTest',
  //   component: TodoListCLassTest,
  // },
  // 
]
